﻿#region

using System;

#endregion

namespace Domain {
    public class Vertex : IEquatable<Vertex> {
        public Vertex(int vertexStart) {
            Id = vertexStart;
            Name = vertexStart.ToString();
        }

        public Vertex(Vertex vertex) {
            Id = vertex.Id;
            Name = vertex.Name;
        }

        public Vertex(int id, string name) {
            Id = id;
            Name = name;
        }

        public int Id { get; set; }
        public string Name { get; set; }

        public bool Equals(Vertex other) {
            return Id == other.Id;
        }

        public override string ToString() {
            return Name;
        }
    }
}